//
// Created by steven on 2017/3/10.
// Copyright (c) 2017 steven. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GMDataController.h"
#import "GMDebtorModel.h"

@interface GMDebtorDataController : GMDataController

// all debtors
@property (nonatomic, strong)NSMutableArray *debtors;

// debtor detail
@property (nonatomic, strong)GMDebtorModel *debtorModel;

// get debtors
- (void)requestDebtorsWithParams:(NSDictionary *)params callback:(GMCompletionCallback)callback;

// get debtor detail
- (void)requestDetailDebtorWithParams:(NSDictionary *)params callback:(GMCompletionCallback)callback;

// update debtor
- (void)updateDebtorWithParams:(NSDictionary *)params callback:(GMCompletionCallback)callback;

// control debtor
- (void)controlDebtorWithParams:(NSDictionary *)params callback:(GMCompletionCallback)callback;

@end